﻿using System;
using System.Net.Sockets;

namespace _17_可选参数
{
    class Program
    {
        static void Main(string[] args)
        {

            Something(20, 100, true);
            Something(3, 1);
            Something(p1: 65, p3: true);
        }


        static void Something(int p1,byte p2=255,bool p3 = false)
        {
            string msg = "参数列表\n" + $"{nameof(p1)}={p1}\n{nameof(p2)}={p2}\n{nameof(p3)}={p3}\n";
            Console.WriteLine(msg);
        }
    }
}
